package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LoanLargeAmountPlusRecordService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanLargeAmountPlusRecordSearchRequest;
import com.tuanzi.loan.vo.response.family.LoanLargeAmountPlusRecordSearchResponse;
import org.springframework.data.domain.Page;

public class LoanLargeAmountPlusRecordDataModel extends
        BaseLazyDataModel<LoanLargeAmountPlusRecordSearchRequest,LoanLargeAmountPlusRecordSearchResponse> {
    private LoanLargeAmountPlusRecordService loanLargeAmountPlusRecordService = SpringContextHolder.getBean(LoanLargeAmountPlusRecordService.class);

    public LoanLargeAmountPlusRecordDataModel(LoanLargeAmountPlusRecordSearchRequest loanLargeAmountPlusRecordSearchRequest) {
        super(loanLargeAmountPlusRecordSearchRequest);
    }

    @Override
    protected Page<LoanLargeAmountPlusRecordSearchResponse> doLoad(PageSearcher<LoanLargeAmountPlusRecordSearchRequest> pageSearcher) {
        return loanLargeAmountPlusRecordService.list(pageSearcher);
    }
}
